package com.luban.myanno;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.lang.reflect.Proxy;

/**
 * 描述：
 *
 * @author lida
 * @time 2019/11/17 10:24
 */
public class AppApplicationMain {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class);
		UserService userService = ac.getBean("user", UserService.class);
		userService.speak();
		userService.speak("Hello World");

	}
}
